import request from '@/utils/request'

// 查询device列表
export function list(pageSize,pageNum) {
    const data = {
        pageSize,
        pageNum,
    }
    return request({
      url: '/separate/record/list',
      method: 'get',
      params: data
    })
  }

// 新增device
export function add(data) {
  
    return request({
      url: '/separate/record',
      method: 'post',
      params: data
    })
}
  // 删除device
export function del(id) {
    return request({
      url: '/separate/record/'+id,
      method: 'DELETE',
    })
}
// 修改device
export function update(data) {

    return request({
        url: '/separate/record',
        method: 'put',
        params: data
    })
}
// 查询device详情
export function detail(id) {
  return request({
    url: '/separate/record/'+id,
    method: 'get',
  })
}
// 搜索device
export function inquire(data) {
  return request({
      url: '/separate/record/list',
      method: 'get',
      params: data
  })
}